package com.ysl.fairy_could_class.service.impl;

import com.ysl.fairy_could_class.domain.Class;
import com.ysl.fairy_could_class.mapper.ClassMapper;
import com.ysl.fairy_could_class.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    ClassMapper mapper;
    @Override
    public List<Class> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public Class selectById(int id) {
        return mapper.selectById(id);
    }

    @Override
    public int SaveClass(Class lesson) {
        return mapper.SaveClass(lesson);
    }

    @Override
    public int UpdateClass(Class lesson) {
        return mapper.UpdateClass(lesson);
    }

    @Override
    public int DeleteClass(int id) {
        return mapper.DeleteClass(id);
    }
}
